/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa036is.daoimplementation;

import cz.muni.fi.pa036is.daointerface.PersonDAO;

import cz.muni.fi.pa036is.entity.Person;
import java.sql.Date;

/**
 *
 * @author Kuba
 */
public class test {
    
    private static PersonDAO pdao;
    private static Date date= new Date(28, 12, 1);
    private static Date date2= new Date(28, 11, 1);
    private static Person p = new Person("jmeno", "přijmení", date, "telefon123", "email123");
    private static Person p2 = new Person("jmeno", "přijmení", date, "telefon1234", "email1234");
   
    public static void main(String[] args){
       
								try {
												pdao = new PersonDAOImpl();
								} catch(Exception ex) {
												System.err.printf(ex.getMessage());
								}
								
        p2.setId(new Long(4));
        pdao.addPerson(p);
        pdao.deletePerson(new Long(2));
        pdao.editPerson(p2);
 
    }
}
